package com.tzbank.wisdom.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.tzbank.wisdom.service.OrCodeService;

@RestController
@RequestMapping("orCode")
public class OrCodeController {
	@Resource
	private OrCodeService orCodeService;
	
	/**
	 * 银联二维码签约
	 * @param reqBody
	 * @return
	 */
	@PostMapping("orSign")
	public Map<String,Object> orSign(@RequestBody Map<String,Object> reqBody){
		return orCodeService.orSign(reqBody);
		
	}
	
	/**
	 * 二维码付款
	 * @param reqBody
	 * @return
	 */
	@PostMapping("paymenetCode")
	public Map<String,Object> paymentCode(@RequestBody Map<String,Object> reqBody){
		return orCodeService.paymentCode(reqBody);
	}
	
	/**
	 * 二维码收款
	 */
	@PostMapping("receiptCode")
	public Map<String,Object> receiptCode(@RequestBody Map<String,Object> reqBody){
		return orCodeService.receiptCode(reqBody);
	}
	
	/**
	 *  扫码付
	 */
	@PostMapping("scavePayment")
	public Map<String,Object> scavePayment(@RequestBody Map<String,Object> reqBody){
		return orCodeService.scavePayment(reqBody);
	}
}
